package com.lqd.mall.system;

import com.lqd.mall.jpa.factory.BaseRepositoryFactoryBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * @author 零起点
 * @create 2022-02-09 16:09
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.lqd.mall" })
@ComponentScan(basePackages = {"com.lqd.mall"})
@EntityScan(basePackages = {"com.lqd.mall.interaction.system","\"com.lqd.mall.interaction.system.vo" })
@EnableJpaRepositories(basePackages = {"com.lqd.mall"},
        repositoryFactoryBeanClass = BaseRepositoryFactoryBean.class//指定自己的工厂类
)
public class SystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(SystemApplication.class,args);
    }
}
